let mix = require('laravel-mix');

/*
 |--------------------------------------------------------------------------
 | Mix Asset Management
 |--------------------------------------------------------------------------
 |
 | Mix provides a clean, fluent API for defining some Webpack build steps
 | for your Laravel application. By default, we are compiling the Sass
 | file for the application as well as bundling up all the JS files.
 |
 */
//后台部分
mix.js('resources/assets/js/admin/index_index.js', 'public/js/admin')
    .js('resources/assets/js/admin/sysrole_index.js', 'public/js/admin')
    .js('resources/assets/js/admin/syspermission_index.js', 'public/js/admin')
    .js('resources/assets/js/admin/sysmenugroup_index.js', 'public/js/admin')
    .js('resources/assets/js/admin/sysmenu_index.js', 'public/js/admin')
    .js('resources/assets/js/admin/sysuser_index.js', 'public/js/admin')

    .js('resources/assets/js/admin/wxusertag_index.js', 'public/js/admin')
    .js('resources/assets/js/admin/wxuser_index.js', 'public/js/admin')
    .js('resources/assets/js/admin/wxmenu_index.js', 'public/js/admin')
    .js('resources/assets/js/admin/wxshorturl_index.js', 'public/js/admin')
    .js('resources/assets/js/admin/wxqrcodegroup_index.js', 'public/js/admin')
    .js('resources/assets/js/admin/wxqrcode_index.js', 'public/js/admin')
    .js('resources/assets/js/admin/wxqrcode_scanlog.js', 'public/js/admin')
    .js('resources/assets/js/admin/wxtemplatemsg_index.js', 'public/js/admin')
    .js('resources/assets/js/admin/wxtemplatemsg_log.js', 'public/js/admin')
    .js('resources/assets/js/admin/wxmaterialnews_index.js', 'public/js/admin')
    .js('resources/assets/js/admin/wxmaterialnews_form.js', 'public/js/admin')

    .sass('resources/assets/sass/admin/material_news.scss', 'public/css/admin');

mix.js('resources/assets/js/app.js', 'public/js')
   .sass('resources/assets/sass/app.scss', 'public/css');

mix.extract(['vue', 'jquery', 'lodash','axios']);
